package com.meida.module.bus.provider.controller;

import com.meida.common.mybatis.model.ResultBody;
import com.meida.common.springmvc.base.BaseController;
import com.meida.module.bus.client.entity.srmapi.basedata.SrmService;
import com.meida.module.bus.provider.service.SrmServiceService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
 * srm物料基本信息控制器
 *
 * @author flyme
 * @date 2020-12-21
 */
@RestController
@RequestMapping("/bus/service/")
public class SrmServiceController extends BaseController<SrmServiceService, SrmService> {

    @ApiOperation(value = "srm物料分页-列表", notes = "srm物料分页列表")
    @GetMapping(value = "page")
    public ResultBody pageList(@RequestParam(required = false) Map params) {
        return bizService.pageList(params);
    }

    @ApiOperation(value = "srm物料基本信息-列表", notes = "srm物料基本信息列表")
    @GetMapping(value = "list")
    public ResultBody list(@RequestParam(required = false) Map params) {
        return bizService.listEntityMap(params);
    }


}
